// 文书管理 --
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

const documentAdd = (params) => postAction('/sys/document/add', params)

// 编辑
const documentEdit = (params) => postAction('/sys/document/edit', params)

// 删除
const documentDelete = (params) => deleteAction('/sys/document/delete', params)

// 公文版本新增

// 公文详情页 获取生效版本信息
const documentVersionInfo = (params) => getAction('/sys/document_version/find_version', params)

const documentVersionAdd = (params) => postAction('/sys/document_version/add', params)

const documentVersionEdit = (params) => postAction('/sys/document_version/edit', params)

const documentVersionEnable = (params) => postAction('/sys/document_version/enable', params)

// 统计
const documentCountPage = (params) => getAction('/sys/document_company/statistics_page', params)

const signCompanyPage = (params) => postAction('/sys/document_company/sign_company_page', params)

const notSignCompanyPage = (params) => postAction('/sys/document_company/not_sign_company_page', params)


export { documentAdd, documentEdit, documentDelete, documentVersionInfo, documentVersionAdd, documentVersionEdit, documentVersionEnable, documentCountPage, signCompanyPage, notSignCompanyPage }
